package com.neusoft.elmboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.elmboot.service.SellerService;
import com.neusoft.elmboot.util.APIResponse;

@RestController
@RequestMapping("/Seller")
public class SellerController {

	@Autowired
	private SellerService sellerService;
	
	@GetMapping
	public APIResponse getSellerById(Integer businessId) {
		return APIResponse.success(sellerService.getSellerById(businessId));
	}
}
